Skip to content

fix: prepare Daytona workspace root before start#2956

Merged
seratch merged 1 commit intomainfrom
fix/daytona-workspace-root
Apr 20, 2026
Merged

fix: prepare Daytona workspace root before start#2956
seratch merged 1 commit intomainfrom
fix/daytona-workspace-root

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 19, 2026

This pull request fixes Daytona sandbox startup when the default /home/daytona/workspace directory does not already exist. The modified _prepare_workspace_root() is internally called in start() method.

The Daytona session now prepares the manifest workspace root through the provider process API before runtime helper installation or other SDK exec paths use that root as cwd. This prevents startup from failing with a cd: no such file or directory error on fresh Daytona sandboxes.

The tests add a fake Daytona condition that reproduces the missing-root failure and verifies both successful root preparation and WorkspaceStartError handling when preparation fails.

This comment was marked as resolved.

@seratch seratch merged commit 12b5471 into main Apr 20, 2026
13 checks passed
@seratch seratch deleted the fix/daytona-workspace-root branch April 20, 2026 21:20
seratch added a commit that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants